#include <stdio.h>

double a,b;
int n;

int main()
{
	int i;
	double fibonacci(int c);
	printf("Please enter the first two numbers of the fibonacci sequence and the number of terms you want to dispaly:");
	scanf("%lf%lf%d",&a,&b,&n);
	for(i=1;i<=n;i++)
	printf("%lf ",fibonacci(i));
	return 0;
}
double fibonacci(int n)
{
	if(1==n)
	return a;
	else if(2==n)
	return b;
	else return fibonacci(n-1)+fibonacci(n-2);
	
}


